package com.example.demo.nettydemo.message;

import com.example.demo.nettydemo.Message;
import com.example.demo.nettydemo.common.CommandConstant;


/***
 * 对登录进行了简化，只需要用户传递一个username，就将username与channel绑定
 */

public class LoginRequest extends Message {

    private String username;

    public LoginRequest(){
        super.messageType = CommandConstant.loginRequest;
    }


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }


    @Override
    public String toString() {
        return "LoginRequest{" +
                "messageType=" + messageType +
                ", sendDate=" + sendDate +
                ", username='" + username + '\'' +
                '}';
    }
}
